package com.indusfo.spc.mapper;

import com.indusfo.spc.pojo.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Author liub
 * @Date 2019/12/17 10:36
 * @Version 1.0
 */

public interface OrderTechMapper {

    /**
     * 新增
     */
    int insertOrderTech(OrderTech orderTech);

    /**
     * 修改
     */
    int updateOrderTech(OrderTech orderTech);

    /**
     * 查询
     */
    List<OrderTech> queryOrderTech(OrderTech orderTech);

    /**
     * 总数
     */
    int countOrderTech(OrderTech orderTech);

    /**
     * 判重
     */
    // int checkOrderTech(OrderTech orderTech);

    /**
     * 启停
     */
    int deleteOrderTech(@Param("orderTechIds") List<Integer> orderTechIds, @Param("dataState") Integer dataState);

    int orderStationInsertList(@Param("orderStationInsertList")List<OrderStation> orderStationInsertList);

    int orderDeteInsertList(@Param("orderDeteInsertList")List<OrderDete> orderDeteInsertList);

    int orderBomInsertList(@Param("orderBomInsertList")List<OrderBom> orderBomInsertList);

    int orderBadphenoInsertList(@Param("orderBadphenoInsertList")List<OrderBadpheno> orderBadphenoInsertList);

    int orderRepairFlowInsertList(@Param("orderRepairFlowInsertList")List<OrderRepairFlow> orderRepairFlowInsertList);

    int orderRepairDeteInsertList(@Param("orderRepairDeteInsertList")List<OrderRepairDete> orderRepairDeteInsertList);



    int insertOrderTechList(@Param("orderList")List<Order> orderList);


    Integer selectNowFlowId( @Param("batchId")Integer batchId);

    Integer selectLastFlowId( @Param("batchId")Integer batchId);



}